import Quill from 'quill'
const Parchment = Quill.import('parchment')

class lineHeightAttributor extends Parchment.Attributor.Style {}
const lineHeightStyle = new lineHeightAttributor('lineHeight', 'line-height', {
  scope: Parchment.Scope.INLINE,
  whitelist: ['1', '1.5', '1.75', '2', '3', '4', '5']
})

const SizeStyle = new Parchment.Attributor.Style('resize', 'font-size', {
  scope: Parchment.Scope.INLINE,
  whitelist: [
    '12px',
    '14px',
    '16px',
    '18px',
    '20px',
    '22px',
    '24px',
    '26px',
    '28px',
    '30px',
    '32px',
    '34px',
    '36px',
    '38px',
    '40px',
    '42px',
    '44px',
    '46px',
    '48px',
    '50px',
    '52px',
    '54px'
  ] // 可选择的字体大小
})
// Quill.register(VideoBlot)

Quill.register({ 'formats/lineHeight': lineHeightStyle }, true)
Quill.register({ 'formats/size': SizeStyle }, true)
// export { lineHeightStyle, SizeStyle }
